package com.jah.picavue.client.events;

import com.google.gwt.event.shared.EventHandler;
import com.google.gwt.event.shared.GwtEvent;
import com.jah.picavue.client.model.Album;

public class GotAlbumDataEvent extends GwtEvent<GotAlbumDataEvent.Handler> {

	public interface Handler extends EventHandler {
		public void onGotAlbumData(GotAlbumDataEvent evt);
	}

	@Override
	protected void dispatch(GotAlbumDataEvent.Handler handler) {
		handler.onGotAlbumData(this);
	}

	@Override
	public GwtEvent.Type<GotAlbumDataEvent.Handler> getAssociatedType() {
		return TYPE;
	}

	public static final GwtEvent.Type<GotAlbumDataEvent.Handler> TYPE = new GwtEvent.Type<GotAlbumDataEvent.Handler>();

	private Album album;

	public Album getData() {
		return album;
	}

	public void setData(Album album) {
		this.album = album;
	}
}
